package cn.initcap.concurrency.classloader;

/**
 * @author initcap
 * @date Created in 2018/7/25 AM10:40.
 */
public class Clinit {

    public static void main(String[] args) {
        System.out.println(Sub.B);
    }

    static class Parent {

        public static int A = 1;

        static {
            A = 2;
        }
    }

    static class Sub extends Parent {
        public static int B = A;
    }

}
